package com.bbtShop.core.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author manke
 * @Date 2020/10/13 15:31
 * @Version 0.0.1
 */
@Data
@ApiModel("用户信息表")
public class User{
    @ApiModelProperty(value = "")
    private Integer id;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "性别 1=男  2=女")
    private Integer sex;

    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "生日")
    private Date  birthday;

    @ApiModelProperty(value = "状态 0=正常 1=停用 3=删除")
    private Integer state;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "添加时间")
    private Date addTime;

    @ApiModelProperty(value = "底薪")
    private BigDecimal money;


}
